/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package units;

import java.util.Arrays;

/**
 *
 * @author jamie
 */
public class Interaction {

    protected Gene g1;
    protected Gene g2;
    protected String id;
   

    public Interaction(Gene g1, Gene g2) {
        Gene[] arr = {g1, g2};
        Arrays.sort(arr);
        this.g1 = arr[0];
        this.g2 = arr[1];
        id = g1.getId()+"_"+g2.getId();
    }

    public Gene getG1() {
        return g1;
    }

    public Gene getG2() {
        return g2;
    }

    public String getId() {
        return id;
    }

    





}
